home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / shareware / share_41 / assembler / !Assemble / overlay1 < prev    next >
Text File  |  1991-05-14  |  675b  |  22 lines

  1. ; NAME       clock
  2. ; PURPOSE    displays the real time clock
  3. ; DESIGN    
  4. ;            set up registers
  5. ;            call operating system command
  6. ;            
  7. ;            
  8. ; COMMENTS   uses OS_Word, an operating system call
  9. ;            this takes the following parameters 
  10. ;            r0 = 14     this is the reason code since OS_Word 
  11. ;                        performs several tasks
  12. ;            r1          points to an area of memory into which
  13. ;                        the time will be placed
  14. ;            [r1] = 0    this is the second parameter, zero means
  15. ;                        read the clock
  16.  
  17. mov  r0, #14
  18. mov  r1, r4
  19. mov  r6, #0
  20. str  r6, [r1]
  21. swi  "OS_Word"
  22.